<!--搜索内容-->
<ion-view title="搜索">
  <ion-content swipe-touch padding="false" scroll="false" overflow-scroll="true" has-bouncing="true">
    <div class="searchBox">
      <input class="searchBoxText" type="text" placeholder="   请输入搜索内容" ng-model="search.data">
      <div class="search" on-touch="search()"></div>
      <div class="clearSearch" on-touch="clear()"></div>
    </div>
    <ion-scroll ng-if="searchBars" class="scrollHeight" direction="y" paging="false" zooming="false" delegate-handle="mainScroll">
      <ion-list bindonce>
        <ion-item ng-repeat="searchBar in searchBars" ui-sref="root.mainText" ng-click="shearchId(searchBar.id)">
          <h2 class="homeNewTitle" bo-text="searchBar.title"></h2>
          <p class="homeNewAuthor">
            <span bo-if="searchBar.origin">来源：<span bo-text="searchBar.origin"></span>&nbsp;</span>
            <span bo-if="searchBar.author">作者：<span bo-text="searchBar.author"></span> &nbsp;</span>
            <span bo-if="searchBar.created_at" bo-text="searchBar.created_at"></span>
          </p>
        </ion-item>
      </ion-list>
      <ion-infinite-scroll ng-if="infinite" on-infinite="loadMore()" distance="1%"></ion-infinite-scroll>
    </ion-scroll>
  </ion-content>
</ion-view>

